﻿using System.ComponentModel;
using System.Windows;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for EditEventWindow.xaml
    /// </summary>
    public partial class TSEK05
    {
        public TSEK05()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VEKPOS();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void QueryCommand(object sender, RoutedEventArgs e)
        { 
            dwData = TBMain.NewRow();
            dwData["EKPMANDANT"] = app.Mandant;
            dwData["EKPAUFKRS"] = KRS;
            dwData["EKPAUFLFD"] = LFD;
            dwData["EKPAUFPOS"] = POS;
            SResult = TMV.QEK01(dwData);
            MergeData(SResult, true);
            if (POS == "000")
            {
                AUF = "K" + KRS + LFD + POS + "".PadRight(8);
            } 
        }
    }

}
